<?php

$translator = \Velacolib\Utility\Utility::translate();
$mobileDetect = new \Frontend\Helper\MobileDetect();
$this->headTitle($page->title);
$this->headMeta(  $page->title.' - '.DEFAULT_DESCRIPTION, 'description' );
?>

    <div class="page-header" id="banner">
        <form action="/" method="get" name="search_form" id="">
            <div class="row" style="">
                <div class="col-lg-4 col-sm-4 col-md-4" style="margin-top: 5px">
                    <input type="text" id="search-input" name="search_val" class="form-control" placeholder="">

                    <div class="loading_absolute">&nbsp</div>
                </div>
                <div class="col-lg-4 col-sm-4 col-md-4" style="margin-top: 5px">
                    <select class="form-control" name="search_cat">
                        <option value="0"><?= $translator->translate('all'); ?></option>
                        <?php $cat = Velacolib\Utility\Utility::getCategoryArray(); ?>
                        <?php foreach ($cat as $key_cat => $val_cat) { ?>
                            <option value="<?php echo $val_cat->id ?>"><?php echo $val_cat->title ?></option>
                        <?php } ?>
                    </select>
                </div>
                <div class="col-lg-4 col-sm-4 col-md-4" style="margin-top: 5px">
                    <div class="input-group">
                        <select class="form-control" name="search_loc">
                            <?php $loc = Velacolib\Utility\Utility::getLocationArray(); ?>
                            <?php foreach ($loc as $k => $c) { ?>
                                <option value="<?php echo $k ?>"><?php echo $c ?></option>
                            <?php } ?>
                        </select>
                    <span class="input-group-btn">
                      <button class="btn btn-primary" id="send" value="Tìm"
                              type="submit"><?= $translator->translate('Search') ?></button>
                    </span>
                    </div>
                </div>
            </div>
            <div class="row" style="margin: 10px">
                <label class="checkbox-inline">
                    <input type="radio" name="search_type" id="inlineCheckbox2"
                           value="0"> <?= $translator->translate('Sell') ?>
                </label>
                <label class="checkbox-inline">
                    <input type="radio" name="search_type" id="inlineCheckbox1"
                           value="1"> <?= $translator->translate('Buy') ?>
                </label>

            </div>
        </form>
    </div>
    <div class="content-body baiviet_container">
        <div class="row-fluid">
              <div class="baiviet_title"><?=$page->title?></div>
            <div class="baiviet_content"><?=$page->content?></div>
        </div>
    </div>
    <!-- topic detail -->

